package com.settlement.system.service.impl;

import com.settlement.system.mapper.BaseMapper;
import com.settlement.system.mapper.TblJlqcFinanceDetailMapper;
import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblJlqcFinanceDetail;
import com.settlement.system.service.ITblJlqcFinanceDetailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;
import java.util.Map;

/**
 * 巨量千川财务流水 服务实现类
 * @author lwb
 * @since 2023-12-26
 */
@Slf4j
@Service
public class TblJlqcFinanceDetailServiceImpl extends BaseServiceImpl implements ITblJlqcFinanceDetailService {

    @Resource
    private TblJlqcFinanceDetailMapper tblJlqcFinanceDetailMapper;

    @Override
    public BaseMapper init() {
        return tblJlqcFinanceDetailMapper;
    }

    @Override
    public TblJlqcFinanceDetail getFoot(Map<String, Object> params) throws ServiceException {
        try {
            return tblJlqcFinanceDetailMapper.getFoot(params);
        } catch (Exception ex) {
            log.error("获取合计异常", ex);
            throw new ServiceException("获取合计异常", ex);
        }
    }
}

